import React from "react";
import ThemeContext from "./Context";
import Left from "./Left";
import Right from "./Right";

class App extends React.Component{
    state = {
        color:"green"
    }
    changeColor = () => {
        this.setState({
            color:"blue"
        })
    }
    render() {
        return <ThemeContext.Provider value={{color:this.state.color,changeColor:this.changeColor}}>
            <Left />
            <Right />
        </ThemeContext.Provider>
    }
}

export default App;